package designPattern.filter.tomcatFilter;

public class Main {
	public static void main(String[] args) {
		Request request = new Request();
		request.setRequestStr("<font>是敏感词");

		Response response = new Response();
		response.setResponseStr("<font>是敏感词");

		FilterChain filterChain = new FilterChain();
		filterChain.add(new HtmlFilter()).add(new SensitiveFilter());
		filterChain.doFilter(request, response, filterChain);

		System.out.println(request.getRequestStr());
		System.out.println(response.getResponseStr());
	}
}
